package org.wxl.service;


import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import org.wxl.domain.fileInfoEntity;

import java.io.IOException;

/**
 * @author 王学良
 */
@Service
public interface FileUploadService {

    /**
     * 文件上传
     * @param file 文件
     * @param  uploaderUuid 上传者id
     *@param  businessType 业务类型
     *  @return 文件信息
     *  @throws IOException
     */
    public fileInfoEntity uploadFile(MultipartFile file, String uploaderUuid, String businessType) throws IOException;
    /**
     * 文件信息更新
     * @param fileInfoEntity 文件信息
     * @return 文件信息
     */
    public String updateFileInfo(fileInfoEntity fileInfoEntity);
    /**
     * 上传视频缩略图
     * @param file 文件
     * @param uploaderUuid 上传者id
     * @param videoUuid 视频id
     * @return 文件信息
     * @throws IOException
     */
    String uploadVideoThumbnail(MultipartFile file, String uploaderUuid ,String videoUuid) throws IOException;
}
